package com.ls.fw.data.hbase.helper;

import java.util.List;

import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.zookeeper.EmptyWatcher;


public class HBaseShims {
  public static Get newGet(byte[] row) { return new Get(row); }
  public static Result newResult(List<KeyValue> list) { return Result.create(list.toArray(new Cell[list.size()])); }
  public static Result newResult(KeyValue[] list) { return  Result.create(list); }
  public static EmptyWatcher getEmptyWatcherInstance() { return EmptyWatcher.instance; }
}
